package com.huawei.classroom.student.h08;

public class Bank {
	int money = 0;
	public void save(int money) {
		this.money += money;
	}
	public void get(int money) throws NoMoneyException {
		if(this.money < money) {
			throw new NoMoneyException("No enough money");
		}
		this.money -= money;
	}
}
